package com.information.manage.MaintenanceRecord.service.impl;

import com.information.manage.MaintenanceRecord.mapper.GddianlanMapper;
import com.information.manage.MaintenanceRecord.pojo.Gddianlan;
import com.information.manage.MaintenanceRecord.service.GddianlanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GddianlanServiceImpl implements GddianlanService {
    @Autowired
    private GddianlanMapper gddianlanMapper;

    @Override
    public List<Gddianlan> selectAll() {
        return gddianlanMapper.selectAll();
    }

    @Override
    public void addMaintGddianlan(Gddianlan gddianlan) {
        gddianlanMapper.insert(gddianlan);
    }

    @Override
    public void updateMaintGddianlan(Gddianlan gddianlan) {
        gddianlanMapper.update(gddianlan);
    }

    @Override
    public void deleteMaintGddianlan(Integer dlid) {
        gddianlanMapper.delete(dlid);
    }

    @Override
    public void logicDeleteMaintGddianlan(Integer dlid) {
        gddianlanMapper.logicDelete(dlid);
    }
}